solving problems of limits at infinity